<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <link rel="shortcut icon" href="<%=request.getContextPath() %>/Hplus/favicon.ico"> 
    <link href="<%=request.getContextPath() %>/Hplus/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="<%=request.getContextPath() %>/Hplus/css/font-awesome.css?v=4.4.0" rel="stylesheet">

    <!-- jqgrid-->
    <link href="<%=request.getContextPath() %>/Hplus/css/plugins/jqgrid/ui.jqgrid.css?0820" rel="stylesheet">

    <link href="<%=request.getContextPath() %>/Hplus/css/animate.css" rel="stylesheet">
    <link href="<%=request.getContextPath() %>/Hplus/css/style.css?v=4.1.0" rel="stylesheet">

    <style>
        /* Additional style to fix warning dialog position */

        #alertmod_table_list_2 {
            top: 900px !important;
        }
        
        .close{
        	position:relative;
        	background-color: red;
        	margin-top:-5px;
        	margin-right:-10px;
        	
        }
        
        .tabSpan{
        	background-color: #F4A460;
        	font-size:25px;
        	cursor:pointer;
        }
    </style>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        
                    </div>
                    <div class="ibox-content">
                        <form method="get" class="form-horizontal">
                        	<input type="hidden" id="oldBtnNo" value="${requestScope.btnNo }"/>
                        	<div class="form-group">
						        <label class="col-sm-4 control-label">标识：</label>
						        <div class="col-sm-5">
						            <input type="text" id="btnNo"  class="form-control" placeholder="请输入标识" value="${requestScope.btnNo }">
						        </div>
						    </div>
                        	
                            <div class="form-group">
						        <label class="col-sm-4 control-label">背景图片地址：</label>
						        <div class="col-sm-5">
						            <input type="text" id="pictPath" class="form-control" placeholder="请输入图片地址" value="${requestScope.pictPath }">
						        </div>
						    </div>
						    
					    
                           
                           	<div class="form-group">
						        <label class="col-sm-4 control-label">按钮名字：</label>
						        <div class="col-sm-5">
						            <input type="text" id="btnName" class="form-control" placeholder="请输入名字" value="${requestScope.btnName }">
						        </div>
						    </div>
                           
                           	<div class="form-group">
						        <label class="col-sm-4 control-label">事件：</label>
						        <div class="col-sm-5">
						            <input type="text" id="btnClick" class="form-control" placeholder="请输入事件" value="${requestScope.btnClick }">
						        </div>
						    </div>
						    
<!-- 						    <div class="form-group"> -->
<!-- 						        <label class="col-sm-4 control-label"></label> -->
<!-- 						        <div class="col-sm-5"> -->
<!-- 						            <button type="button" class="btn btn-primary" onclick="saveBtnInfo();">确定</button> -->
<!-- 						        </div> -->
<!-- 						    </div> -->
                        </form>
                    </div>
                    
                </div>
            </div>
        </div>
    </div>

    

    <!-- 全局js -->
    <script src="<%=request.getContextPath() %>/Hplus/js/jquery.min.js?v=2.1.4"></script>
    <script src="<%=request.getContextPath() %>/Hplus/js/bootstrap.min.js?v=3.3.6"></script>

    <!-- 自定义js -->
    <script src="<%=request.getContextPath() %>/Hplus/js/content.js?v=1.0.0"></script>

    <!-- iCheck -->
    <script src="<%=request.getContextPath() %>/Hplus/js/plugins/iCheck/icheck.min.js"></script>
    
    <script type="text/javascript" src="<%=request.getContextPath() %>/js/baseUI.js"></script>
    <script>
       
        
        
        function save(){
        	var btnNo = $("#btnNo").val();
        	var pictPath = $("#pictPath").val();
        	var btnName = $("#btnName").val();
        	var btnClick = $("#btnClick").val();
        	var oldBtnNo = $("#oldBtnNo").val();
        	
        	var w = $(".btnDiv", window.parent.document);
        	if("" != oldBtnNo){
        		var obj = $("#"+oldBtnNo, window.parent.document);
            	$(obj).parent().remove();
        	}
        	
        	
        	var params = btnNo + ","+ btnName + ","+ btnClick;
        	
        	var html = "<div class=\"col-sm-1\">";
        	html += "<button type=\"button\" class=\"btn btn-w-m btn-info btnHandler\" ondblclick=\"getBtnInfo(this)\">";
        	html += btnName;
        	html += "</button>";
        	html += "<span class=\"close\" onclick=\"closeBtn(this);\">";
        	html += "<img alt=\"关闭\" src=\"<%=request.getContextPath() %>/img/close.png\" width=\"15\" height=\"15\">";
        	html += "</span>";
        	html += "<input type=\"hidden\" id="+btnNo+" name=btn"+btnNo+" value="+params+"/>";
        	html += "</div>";
        	
        	
        	
        	w.append(html);
        	
        	var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
            parent.layer.close(index);
        }
    </script>

    <script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
    <!--统计代码，可删除-->

</body>
</html>